package com.hmall.service;
import java.util.List;

import com.hmall.common.dto.PageDTO;
import com.hmall.doc.ItemDoc;
import com.hmall.dto.RequestParams;

import java.util.Map;

/**
 * @Description TODO
 * @Author fang
 * @Date 2023-06-21 11:38
 */
public interface SearchService {
    /**
     * 自动补全
     * @param key
     * @return
     */
    List<String> suggestion(String key);

    Map<String, List<String>> getfilter(RequestParams requestParams);


    /**
     * 搜索
     * @param requestParams
     * @return
     */
    PageDTO<ItemDoc> list(RequestParams requestParams);

    void deleteById(Long id);

    void insertById(Long id);
}
